home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI619.ASC < prev    next >
Text File  |  1992-08-12  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  619
  9.   VERSION  :  3.5 & up
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/2
  12.  
  13.     TITLE  :  Creating and using PAL variables in reports and forms
  14.  
  15.  
  16.  
  17.  
  18.   Using PAL variables in reports and forms is a feature available
  19.   to Paradox version 3.5 and above.  Variables can be placed in a
  20.   report or form while in the report or form design mode.  The
  21.   steps are as follows:
  22.  
  23.       o  From the Paradox main menu, choose {Report} {Change} or
  24.          {Form} {Change}.
  25.  
  26.       o  Select the appropriate table and report or form number.
  27.  
  28.       o  Press <F10> and select {Field} {Place} {Calculated}.
  29.  
  30.       o  You may now type in a memory variable or a calculation
  31.          which uses variables (eg. VAR where "VAR" is the name of
  32.          the memory variable or VAR * VAR1 where "VAR" and "VAR1"
  33.          are numeric variables involved in a calculation) and press
  34.          <Enter>, then press <F2> to save the file.
  35.  
  36.   NOTE: Before printing the report or viewing the form, the memory
  37.   variables used will need to be assigned values:
  38.  
  39.   One way to assign a value to a variable is through a Miniscript.
  40.   For example, here are the steps necessary to set a variable
  41.   called "VAR" to the number 400
  42.  
  43.       o  Press <ALT><F10> to bring up the PAL menu.
  44.  
  45.       o  Choose {Miniscript} from the PAL menu.
  46.  
  47.       o  Now type VAR = 400.  The expression will set the memory
  48.          variable called "VAR" to the numeric value 400.
  49.  
  50.   NOTE: Variable can also be set to calculations, text values, and
  51.   dates as in the following expressions:
  52.  
  53.       o  VAR1 = (100+VAR)/1000
  54.  
  55.       o  VAR2 = "This is a text string"
  56.  
  57.       o  VAR3 = 12/15/91
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  619
  75.   VERSION  :  3.5 & up
  76.        OS  :  DOS
  77.      DATE  :  August 12, 1992                          PAGE  :  2/2
  78.  
  79.     TITLE  :  Creating and using PAL variables in reports and forms
  80.  
  81.  
  82.  
  83.  
  84.   Additionally, a variable can be set to a value on a table.  For
  85.   example, if a query with a CALC SUM is run, an Answer table is
  86.   generated with a one field record.  To set the variable to that
  87.   field in the Answer table, move the cursor to the field and do a
  88.   Miniscript with the expression VAR = [].  Before doing so, make
  89.   sure the cursor is in the correct field since [] refers to the
  90.   current field.
  91.  
  92.   DISCLAIMER: You have the right to use this technical information
  93.   subject to the terms of the No-Nonsense License Statement that
  94.   you received with the Borland product to which this information
  95.   pertains.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.